#ifndef _SOCKET_H__
#define _SOCKET_H__
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <WebSocketsServer.h>

class Socket
{
public:
    Socket();
    void init();
    WebSocketsServer *Server;
    int8_t GetIp(IPAddress ip_needed);
    void SendClient(String data, IPAddress ip);

private:
   String getValue(String data, char separator, int index);    
};

#endif